Add c flag when invoking ar (#241)
authorHarmen Stoppels <harmenstoppels@gmail.com>
Tue, 25 Oct 2022 02:47:20 +0000 (04:47 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2022 02:47:20 +0000 (22:47 -0400)
`llvm-ar` warns when the archive does not exist and `c` is not passed.

Makefile

index 467a77a864416f8d73347ac491c3193a52c6c49f..1e5d398596665882fc20be021400a7931fc926be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,7 +78,7 @@ utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
 
 libutf8proc.a: utf8proc.o
        rm -f libutf8proc.a
-       $(AR) rs libutf8proc.a utf8proc.o
+       $(AR) crs libutf8proc.a utf8proc.o
 
 libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH): utf8proc.o
        $(CC) $(LDFLAGS) $(LDFLAG_SHARED) -o $@ $(SOFLAG) -Wl,libutf8proc.so.$(MAJOR) utf8proc.o